Skip to content

fix: AppBio QuantStudio Design & Analysis - Check for valid rq values before setting r_sample and r_target#1138

Merged
nathan-stender merged 6 commits intomainfrom
slopez/fix-designandanalysis-no-rq-values
Mar 19, 2026
Merged

fix: AppBio QuantStudio Design & Analysis - Check for valid rq values before setting r_sample and r_target#1138
nathan-stender merged 6 commits intomainfrom
slopez/fix-designandanalysis-no-rq-values

Conversation

@slopez-b
Copy link
Collaborator

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves robustness of the AppBio QuantStudio Design & Analysis Relative Standard Curve parser by avoiding reference-sample/target inference when the RQ sheet has no usable Rq values, preventing conversion failures in those scenarios.

Changes:

  • Added _has_valid_rq_values() to detect whether the “RQ Replicate Group Result” sheet contains any non-null Rq values before attempting reference inference.
  • Updated RelativeStandardCurveCreator.create() to set reference_sample/reference_target to None when no valid Rq values exist.
  • Relaxed the type of r_sample in iter_relative_standard_curve_calc_docs() to allow None.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
src/allotropy/parsers/appbio_quantstudio_designandanalysis/structure/relative_standard_curve/creator.py Adds an RQ validity check and conditionally skips reference inference to avoid runtime errors.
src/allotropy/parsers/appbio_quantstudio_designandanalysis/appbio_quantstudio_designandanalysis_calculated_documents.py Updates iter_relative_standard_curve_calc_docs signature to accept `r_sample: str

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@slopez-b slopez-b requested review from nathan-stender and removed request for nathan-stender March 17, 2026 14:42
Copy link
Collaborator

@nathan-stender nathan-stender left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nathan-stender nathan-stender merged commit a89c1f7 into main Mar 19, 2026
9 checks passed
@nathan-stender nathan-stender deleted the slopez/fix-designandanalysis-no-rq-values branch March 19, 2026 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants